<?php /* Smarty version Smarty-3.0.7, created on 2013-12-27 13:34:34
         compiled from "E:/runtime/other/zqn.sh/app_admin/_view/templates\album/list.html" */ ?>
<?php /*%%SmartyHeaderCode:775852bce86c786de3-30352759%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3d09585a90ba71029743670a712fc906e7029613' => 
    array (
      0 => 'E:/runtime/other/zqn.sh/app_admin/_view/templates\\album/list.html',
      1 => 1388122471,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '775852bce86c786de3-30352759',
  'function' => 
  array (
  ),
  'cache_lifetime' => 3600,
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'E:\runtime\other\zqn.sh\tryPHP\library\smarty\plugins\modifier.date_format.php';
?><?php $_template = new Smarty_Internal_Template("_header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("_navibar.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("_sidebar.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>

<div class="content">
<div class="header">
  <div class="stats">
    <p class="stat">
      <!--span class="number"></span-->
    </p>
  </div>
  <h1 class="page-title">作品展示</h1>
</div>
<ul class="breadcrumb">
  <li><a href="#">控制面板</a> <span class="divider">/</span></li>
  <li class="active">作品展示</li>
</ul>
<div class="container-fluid">
<div class="row-fluid">
<div class="bb-alert alert alert-info" style="display: none;"> <span>操作成功</span> </div>
<!-- TPLSTART 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<div class="btn-toolbar"  style="margin-bottom:2px;"> <a href="./?application=admin&controller=news&method=add"  class="btn btn-primary"><i class="icon-plus"></i> 新增相册</a> 
<a href="./?application=admin&controller=news&method=add"  class="btn btn-primary"><i class="icon-th-list "></i> 类别管理</a>
 <a data-toggle="collapse" data-target="#search"  href="#" title= "检索" style="display:none;">
  <button class="btn btn-primary" style="margin-left:5px"><i class="icon-search"></i></button>
  </a> </div>
<div id="search" class="collapse out" >
  <form class="form_search"  action="" method="GET" style="margin-bottom:0px">
    <div style="float:left;margin-right:5px">
      <label>选择菜单模块</label>
      <select name="module_id" class="input-xlarge" id="DropDownTimezone">
        <option value="0" class="input-xlarge option" id="DropDownTimezone-0">全部</option>
        <option value="1" class="input-xlarge option" id="DropDownTimezone-1">控制面板</option>
        <option value="2" class="input-xlarge option" id="DropDownTimezone-2">样例模块</option>
        <option value="4" class="input-xlarge option" id="DropDownTimezone-3">新闻管理</option>
        <option value="5" class="input-xlarge option" id="DropDownTimezone-4">产品管理</option>
        <option value="6" class="input-xlarge option" id="DropDownTimezone-5">ddddd</option>
      </select>
    </div>
    <div style="float:left;margin-right:5px">
      <label>查询所有请留空</label>
      <input type="text" name="menu_name" value="" placeholder="输入菜单名称" >
      <input type="hidden" name="search" value="1" >
    </div>
    <div class="btn-toolbar" style="padding-top:25px;padding-bottom:0px;margin-bottom:0px">
      <button type="submit" class="btn btn-primary">检索</button>
    </div>
    <div style="clear:both;"></div>
  </form>
</div>

<div class="block"> <a href="#page-stats" class="block-heading" data-toggle="collapse">相册列表</a>
  <div id="page-stats" class="block-body collapse in">
    <table class="table table-striped">
      <thead>
        <tr>
          <th width="30">序号</th>
          <th>名称</th>
          <th width="40">照片数量</th>
          <th width="100">发布日期</th>
          <th width="75">操作选项</th>
        </tr>
      </thead>
      <tbody>
      <?php  $_smarty_tpl->tpl_vars['Row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('Data')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['NewsList']['index']=-1;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['Row']->key => $_smarty_tpl->tpl_vars['Row']->value){
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['NewsList']['index']++;
?>
        <tr>
          <td><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['NewsList']['index']+1;?>
</td>
          <td><?php echo $_smarty_tpl->tpl_vars['Row']->value['Title'];?>
</td>
          <td>20</td>
          <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['Row']->value['Datetime'],"%Y-%m-%d");?>
</td>
          <td><a href="./?application=admin&controller=news&method=edit&id=<?php echo $_smarty_tpl->tpl_vars['Row']->value['ID'];?>
" title= "修改" ><i class="icon-pencil"></i></a> &nbsp;
           <a data-toggle="modal" href="#myModal"  title= "删除" >
           <i class="icon-remove" href="./?application=admin&controller=news&method=delete&id=<?php echo $_smarty_tpl->tpl_vars['Row']->value['ID'];?>
" data-toggle="modal" ></i></a></td>
        </tr>
      <?php }} ?>
      </tbody>
    </table>
<script>
$('.icon-remove').click(function(){
		
		var href=$(this).attr('href');
		bootbox.confirm('确定要这样做吗？', function(result) {
			if(result){

				location.replace(href);
			}
		});		
	})
	
</script>
    <!--- START 分页模板 --->
    <div class="pagination" style="display:none;">
      <ul>
        <li><span>1</span></li>
        <li><a href=" menus.php?module_id=&menu_name=&search=&page_no=2 ">2</a></li>
        <li><a href="menus.php?module_id=&menu_name=&search=&page_no=2">下一页</a></li>
        <li><a href="menus.php?module_id=&menu_name=&search=&page_no=2">末页</a></li>
        <li><a>1/2</a></li>
        <li><a>共28条</a></li>
      </ul>
    </div>
    <!--- END 分页--->
  </div>
</div>
<?php $_template = new Smarty_Internal_Template("_footer_common.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("_footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
